// 会议类型
/**
 * 开工推进会议
 * 计划总结与考核
 * 竣工推进会
 */
// 9工程-开工推进会；10工程-月例会；11工程-周例会；12工程-日例会；13工程-竣工推进会；14工程-其他会议
const meetingType = [
    {
        value: '15',
        label: '生产例会'
    },
    {
        value: '9',
        label: '开工推进会议'
    },
    {
        value: '10',
        label: '月例会'
    },
    {
        value: '11',
        label: '周例会'
    },
    {
        value: '12',
        label: '日例会'
    },
    {
        value: '13',
        label: '竣工推进会'
    },
    {
        value: '14',
        label: '其他会议'
    }
]

// 拟采取措施 状态
/**
 * @description 
 * 未开始
 * 进行中
 * 已完结
 */
// 会议状态 10:草稿 20:待开始 30:进行中 35:审批中 40:完结 50审批不通过
const meetingStatus = [
    {
        value: '20',
        label: '待开始'
    },
    {
        value: '30',
        label: '进行中'
    },
    {
        value: '40',
        label: '已完成'
    },
]

// 搜索条件
const searchOption = [
    {
        name: '会议名称',
        value: 'meetingName',
        type: 'input',
    },
    {
        name: '会议类型',
        value: 'meetingType',
        type: 'select',
        data: meetingType
    },
    {
        name: '召开时间',
        value: 'startEndDate',
        type: 'dateRangeFormat',
        attr: {
          rangeFormat: ['startTime', 'endTime']
        }
    },
    {
        name: '状态',
        value: 'meetingStatus',
        type: 'select',
        data: meetingStatus
    },
]

// 定义表头
const columns = [
    {
        title: '序号',
        width: 65,
        scopedSlots: { customRender: 'serial' },
    },
    {
        title: '会议名称',
        width: 100,
        dataIndex: 'meetingName',
    },
    {
        title: '会议类型',
        width: 100,
        dataIndex: 'meetingTypeName',
    },
    {
        title: '所属分公司',
        width: 100,
        dataIndex: 'branchComName',
    },
    {
        title: '所属项目',
        width: 100,
        dataIndex: 'projectName',
    },
    {
        title: '召开时间',
        width: 100,
        dataIndex: 'meetingTime',
    },
    {
        title: '参会人数',
        width: 120,
        dataIndex: 'signNum',
    },
    {
        title: '创建人',
        width: 140,
        dataIndex: 'createUser',
    },
    {
        title: '状态',
        width: 100,
        dataIndex: 'meetingStatusName',
    },
    {
        title: '操作',
        dataIndex: 'action',
        width: 180,
        scopedSlots: { customRender: 'action' },
    },
]
// 参会人员表头
const columnsEmployee = [
  {
    title: "员工名称",
    dataIndex: "name"
  },

  {
    title: "电话号码",
    dataIndex: "phone"
  },

  {
    title: "操作",
    dataIndex: "actions",
    width: "100px",
    scopedSlots: { customRender: "actions" }
  }
]
// 开工推进会议
// 计划总结与考核
// 竣工推进会
// 模拟数据
const mockdata = [
    {
        id: 1,
        meetingName: '会议一',
        meetingTypeName: '开工推进会议',
        branchName: '四川分公司',
        projectName: '独角兽岛园区二批次项目',
        startTime: '2022.03.10',
        meetingNum: '10',
        createName: '张三',
        status: 0,
    },
    {
        id: 2,
        meetingName: '会议二',
        meetingTypeName: '计划总结与考核',
        branchName: '四川分公司',
        projectName: '独角兽岛园区二批次项目',
        startTime: '2022.03.10',
        meetingNum: '10',
        createName: '张三',
        status: 0,
    },
    {
        id: 3,
        meetingName: '会议三',
        meetingTypeName: '竣工推进会',
        branchName: '四川分公司',
        projectName: '独角兽岛园区二批次项目',
        startTime: '2022.03.10',
        meetingNum: '10',
        createName: '张三',
        status: 0,
    },
]


export {
    searchOption,
    columns,
    mockdata,
    meetingType,
    meetingStatus,
    columnsEmployee
}